<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        // var a=1;
        // var b=a;
        // b+=2;
        // console.log(a,b);//a=1,b=3


        var obj={
            name:"zhanngsan",
            age:12
        }
        var obj2=obj;
        console.log(obj,obj2);//Object { name: "zhanngsan", age: 12 }  

        obj2.gender="male";
        console.log(obj,obj2);//Object { name: "zhanngsan", age: 12, gender: "male" }
                              
        
        obj2.age+=1;
        console.log(obj,obj2);//Object { name: "zhanngsan", age: 13, gender: "male" }

 
    </script>
</head>
<body>
    
</body>
</html>